import request from '@/utils/request';

export async function getMaterialCodeInfoByPage (params: any) {
    return request('/api/product/getMaterialCodeInfoByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addMaterialCodeInfo (params: any) {
    return request('/api/product/addMaterialCodeInfo', {
    method: 'POST',
    data: params,
  });
}

export async function updateMaterialCodeInfo (params: any) {
    return request('/api/product/updateMaterialCodeInfo', {
    method: 'POST',
    data: params,
  });
}

export async function delMaterialCodeInfo (params: any) {
    return request('/api/product/delMaterialCodeInfo', {
    method: 'POST',
    data: params,
  });
}


export async function exportMaterialCodeInfo(params: any) {
    return request('/api/product/exportMaterialCodeInfo', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getMaterialCodeInfoByPage, addMaterialCodeInfo, updateMaterialCodeInfo, delMaterialCodeInfo, exportMaterialCodeInfo }
